//
// Created by Administrator on 2022/1/29.
//

#include "annimal.h"


annimal::annimal()
{
    cout << "building a class annimal " << endl;
}
annimal::~annimal()
{
    cout << "deleting a class annimal" << endl;
}

void annimal::speak()
{
    cout << "a annimal is speaking" << endl;
}

Dog::Dog()
{
    cout << "building a class dog" << endl;
}
Dog::~Dog()
{
    cout << "deleting a class dog" << endl;
}

void Dog::speak()
{
    cout << "a dog is speaking" << endl;
}